package zouhaotian.rbac.domain.entity;

import zouhaotian.rbac.domain.enums.RoleDateScope;

import java.time.LocalDateTime;

/**
 * 实体类-角色
 *
 * @auther 邹昊天
 * @since 2025/6/19 20:39
 */
public class Role extends BaseEntity {

    /**
     *  角色名称
     */
    public String name;

    /**
     *  数据访问范围
     */

    public RoleDateScope dataScope;

    public Role() {
    }

    public Role(Integer id, LocalDateTime createAt, LocalDateTime updateAt, String name, RoleDateScope dataScope) {
        super(id, createAt, updateAt);
        this.name = name;
        this.dataScope = dataScope;
    }
}
